import axios from 'axios';
import {API_NEW_VERSION} from '../api';

export const searchNewOrders = params => {
  return axios.get(API_NEW_VERSION + 'orders_new', {params: params});
};

export const searchOrganizationOrders = params => {
  return axios.get(API_NEW_VERSION + 'orders_new_organization', {params: params});
};

export const orderStatistics = params => {
  return axios.get(API_NEW_VERSION + 'orders/statistics', {params: params});
};

export const orderNumStatisticsForFilters = params => {
  return axios.get(API_NEW_VERSION + 'order/order_num_statistics', {params: params});
};
